package inheritance;

public class RaceCar extends Car {

	public RaceCar(int vinNumber, String make, String model, String color,
			int maxSpeed, int year) {
		super(vinNumber, make, model, color, maxSpeed, year);
	}

	void race() {
		System.out.println("Im a NasCar0013");
		accelerateSpeed(getMaxSpeed());
		System.out.println("i'm accelerating to  :" + getMaxSpeed());
	}

}
